<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MotaSiteStandard.Master"
    Inherits="System.Web.Mvc.ViewPage<MotaWeb.Models.Biography>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    MoTA - Create A Biography
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Create A Biography</h2>
    <p>
        Once your 5 word biography is approved by the MoTA administrator it will be visible
        to any visitor to our web site
        <%= Html.ActionLink("here", "Our Stories", "Who") %>.
    </p>
    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm())
       {%>
    <fieldset>
        <legend>Biography details</legend>
        <p>
            <label for="BiographyText">
                Biography Text:</label>
            <%= Html.TextBox("BiographyText") %>
            <%= Html.ValidationMessage("Biography Text", "*") %>
        </p>
        <p>
            <label for="UserName">
                User Name:</label>
            <%= Html.TextBox("UserName", Page.User.Identity.Name)%>
        </p>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
